<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>RegExp match</title>
</head>
<body>
<h3>RegExp match 方法</h3>
<script>
    var patt1=new RegExp("e");
console.log(patt1.exec("The best things in life are free")); // ['e',...]
</script>
</body>
</html>
